import type {
  MobileLoginRequest,
  MobileSmsLoginResponse,
  UploadCustomerSignRequest,
} from '@/api/modules/user/user.type.ts'
import request from '@/api'

const userService = {
  mobileLogin: (data: MobileLoginRequest) => {
    return request.post('/mobileLogin', data)
  },
  mobileSmsLogin: (data: MobileSmsLoginResponse) => {
    return request.post('/mobileSmsLogin', data)
  },
  getInfo: () => {
    return request.post('/ucar/customer/mobileDetail')
  },
  logout: () => {
    return request.post('/logout')
  },
  uploadCustomerSign: (data: UploadCustomerSignRequest) => {
    return request.post('/ucar/customer/uploadCustomerSign', data)
  },
  income: (data:any) => {
    return request.post('/ucar/customer/income',data)
  },
}

export default userService
